@transfer-prefix-cls: ~"@{css-prefix}transfer";
@transfer-item-prefix-cls: ~"@{css-prefix}transfer-list-content-item";
.@{transfer-prefix-cls} {
  position: relative;
  line-height: @line-height-base;
  ::-webkit-scrollbar {
    width: 6px;
    cursor: pointer;
  }
  ::-webkit-scrollbar-track {
    background-color: @color-scrollbar-track !important;
  }
  ::-webkit-scrollbar-thumb {
    background-color: @color-scrollbar !important;
    border-radius: 6px;
  }
  &-list{
    display: inline-block;
    min-width: 200px;
    height: 256px;
    font-size: @font-size-base;
    vertical-align: middle;
    position: relative;
    padding-top: 32px;

    &-with-footer{
      padding-bottom: 35px;
    }

    &-header {
      padding: 6px 10px;
      background: @color-bg-card;
      color: @color-complementary-3;
      border: 1px solid @border-color-base;
      border-bottom: 1px solid @border-color-split;
      border-radius: @border-radius-base @border-radius-base 0 0;
      overflow: hidden;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      display:flex;
      vertical-align:middle;
      &-title{
        cursor: pointer;
        margin-left: -10px;
        &.no-checkbox {
          cursor: auto;
          margin-left: 0;
        }
      }

      &-count {
        display: inline-block;
        color:@color-complementary-6;
        font-size: @font-size-base;
        margin-left: 10px;
        width: 50px;
      }
    }

    &-body{
      height: 100%;
      border: 1px solid @border-color-base;
      border-top: none;
      border-radius: 0 0 @border-radius-base @border-radius-base;
      position: relative;

      &-with-search{
        padding-top: 40px;
      }
      &-with-footer{
        border-radius: 0;
      }
    }

    &-content{
      height: 100%;
      padding: 0;
      overflow: auto;
      &.as-table {
        padding: 8px 10px 10px 10px !important;
        height: auto;
      }

      &-item{
        overflow: hidden;
        white-space: nowrap;
        padding: 7px 10px !important;
        text-overflow: ellipsis;
        display: flex;
        vertical-align: middle;
        & > div{
          margin-left: -10px;
        }
      }

      &-not-found{
        display: none;
        text-align: center;
        color: @btn-disable-color;
      }
      li&-not-found:only-child{
        display: block;
      }
    }
    &-body-with-search &-content{
      padding: 8px 0 0;
    }

    &-body-search-wrapper{
      padding: 10px 10px 0;
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
    }

    &-search{
      position: relative;
    }

    &-footer{
      border: 1px solid @border-color-base;
      border-top: none;
      border-radius: 0 0 @border-radius-base @border-radius-base;
      bottom: 0;
      left: 0;
      right: 0;

      .clearfix();
    }
  }
  &-operation {
    display: inline-block;
    margin: 0 16px;
    vertical-align: middle;

    &-btn {
      display: block;
      width: 32px;
      min-width: @btn-circle-size-small;
      vertical-align: center;
      text-align: center;
      padding: 0;
      font-size: @font-size-large;
      &:first-child {
        margin-bottom: 12px;
      }
    }
  }
}
.select-item(@transfer-prefix-cls, @transfer-item-prefix-cls);
